<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="script/EMP1030P0.js" defer="defer"></script>
</head>
<body>
	<form action="" method="post">
		<input type="text" id="searchName" name="searchName">
		<input type="submit" value="이름검색">
	</form>
	<c:if test="${EMP != null }">
		<table border="1">
			<tr>
				<td>사원번호</td>
				<td>이름</td>
				<td>부서</td>
			</tr>
			<c:forEach var="i" items="${EMP }">
				<tr>
					<td>
						<a href="javascript:selectEmp('${i.employee_id }','${i.name }','${i.dept_code }')">
							${i.employee_id }
						</a>
					</td>		
					<td>${i.name }</td>
					<td>${i.dept_code }</td>
				</tr>
			</c:forEach>
		</table>
	</c:if>
</body>
</html>